package com.dao;

import com.entity.BorrowBooks;
import com.entity.Reader;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;
//1
public interface ReaderDao {
    Reader queryPower(Integer rTypeNo);

    Integer queryBrNo(Map<String, Object> map);
    Integer queryHasBorrow(Integer uNo);
    Integer queryBrDay(Integer rTypeNo);
    Integer queryENumber(Integer bNo);
    void borrowBook(Map<String, Object> map);
    void updateENumber(Integer bNo,Integer eNumber);

    Page queryBorrowBooks(Map<String, Object> queryMap);

    Page queryBorrowDetail(Map<String, Object> queryMap);

    BorrowBooks queryBorrowBooks2(Map<String, Object> map);

    int queryBrNum(Integer rTypeNo);

    void updateBorrow(Map<String, Object> map);

    void returnBook(Map<String, Object> map);


    int queryHadBorrow(Integer bNo, Integer uNo);

    void updateBorrowed(Map<String, Object> map);
}
